<template>
  <div class="FolderList">
    <div class="list-item" v-for="(item,index) in list" :key="index">
      <div class="itrm-name">
        <i class="el-icon-folder"></i>
        <span>{{item.group_name}}</span>
      </div>
      <div v-if="item.children" class="children-item">
        <FolderList :list="item.children"></FolderList>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name:"FolderList",
  props:{
    list:Array
  }
}
</script>